/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.xd.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.xd.domain.po.DocumentFlowCancelRequestFlowPO;
import com.xy.biz.xd.domain.query.DocumentFlowCancelRequestFlowQuery;

/**
 * 
 * 
 * @author zgy
 * @date 2021-6-17
 */
public interface DocumentFlowCancelRequestFlowDao {
	
	/**
	 * 保存
	 *
	 * @param documentFlowCancelRequestFlowPO
	 */
	int saveDocumentFlowCancelRequestFlow(DocumentFlowCancelRequestFlowPO documentFlowCancelRequestFlowPO);
	
	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllDocumentFlowCancelRequestFlow(Collection<DocumentFlowCancelRequestFlowPO> collection);
	
	/**
	 * 更新
	 *
	 * @param documentFlowCancelRequestFlowPO
	 */
	int updateDocumentFlowCancelRequestFlow(DocumentFlowCancelRequestFlowPO documentFlowCancelRequestFlowPO);
	
	/**
	 * 删除
	 *
	 * @param documentFlowCancelRequestFlowId
	 */
	int deleteDocumentFlowCancelRequestFlow(Long documentFlowCancelRequestFlowId);
	
	/**
	 * 查找一个
	 *
	 * @param documentFlowCancelRequestFlowId
	 * @return
	 */
	DocumentFlowCancelRequestFlowPO getDocumentFlowCancelRequestFlow(Long documentFlowCancelRequestFlowId);

	/**
	 * 查找一个
	 *
	 * @param documentFlowId
	 * @return
	 */
	DocumentFlowCancelRequestFlowPO getDocumentFlowCancelRequestFlowByDocumentFlowId(Long documentFlowId);

	/**
	 * 查找多条
	 *
	 * @param collection 
	 * @return
	 */
	List<DocumentFlowCancelRequestFlowPO> listDocumentFlowCancelRequestFlowById(Collection<Long> collection);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<DocumentFlowCancelRequestFlowPO> listDocumentFlowCancelRequestFlowByDocumentFlowId(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<DocumentFlowCancelRequestFlowPO> listDocumentFlowCancelRequestFlow(DocumentFlowCancelRequestFlowQuery query);
	
	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countDocumentFlowCancelRequestFlow(DocumentFlowCancelRequestFlowQuery query);
	
}
